package com.name.givename.enums;

/**
 * Created by yangtianrui
 */
public enum ResultEnum {

    GIVENAME_NULL(121,"用户起名为空"),
    USER_ID_NULL(122,"用户id为空"),
    NAME_IS_INVALID(123,"该名字不合法"),
    ALLOW_THREE_NAMES(124,"用户起名个数不能超过三次"),
    NAME_ID_IS_NULL(125,"投票名字id为空"),
    VOTETE_TIME_NOT_ALLOW(126,"24小时只能投票一次"),
    USER_OPENID_NULL(127,"用户OPENID为空"),
    USER_ID_NAME_NULL(128,"用户ID名称为空"),
    REDPACK_COUNT_EMPTY(129,"今日份的红包已被领完，明天早点来"),
    SMSCODE_WORNG(129,"短信验证码错误"),
    SHARE_URL_NULL(130,"微信分享链接不能为空"),
    VATE_SELF_NOT_ALLOW(131,"不能给自己投票"),
    PHONE_NULL(132,"电话号不能为空"),
    USER_BINDED_ALREADY(133,"用户已经绑定")

    ;



    private Integer code;

    private  String value;

    ResultEnum(Integer code, String value)
    {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
